import request from '@/utils/request'

// 查询标准化考核汇总列表
export function listInspectionResult(query) {
  return request({
    url: '/workSafetyStandardization/inspectionResult/list',
    method: 'get',
    params: query
  })
}

// 查询标准化考核汇总详细
export function getInspectionResult(inspectionId) {
  return request({
    url: '/workSafetyStandardization/inspectionResult/' + inspectionId,
    method: 'get'
  })
}

// 新增标准化考核汇总
export function addInspectionResult(data) {
  return request({
    url: '/workSafetyStandardization/inspectionResult',
    method: 'post',
    data: data
  })
}

// 修改标准化考核汇总
export function updateInspectionResult(data) {
  return request({
    url: '/workSafetyStandardization/inspectionResult',
    method: 'put',
    data: data
  })
}

// 删除标准化考核汇总
export function delInspectionResult(inspectionId) {
  return request({
    url: '/workSafetyStandardization/inspectionResult/' + inspectionId,
    method: 'delete'
  })
}
